home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
misc_pto
/
29ksim
/
trap.h
< prev
next >
Wrap
Text File
|
1987-07-28
|
2KB
|
74 lines
.nolist
/* trap.h -- trap vector definitions */
/* simulator traps recoverable or done */
END_SUCCESS .equ 64 /* successful termination */
END_FAIL .equ 65 /* failure termination */
VERBOSE_ON .equ 66 /* start tracing */
VERBOSE_OFF .equ 67 /* stop tracing */
CHECKPOINT .equ 68 /* checkpoint trap */
/* simulator traps NOT recoverable */
DIVBYZERO .equ 69
DIVOVERFLOW .equ 70
/* debug support traps */
/* example:
dumplr 12,14 ; macro for below
or
const gr40,12
const gr40,14
asneq DUMPLREGS,gr01,gr01
nop (optional)
*/
DUMPGREGS .equ 71 /* Dump contents of gr[gr40]-gr[gr41] */
/* Global regesters from 40 to 07f#h*/
DUMPLREGS .equ 72 /* Dump contents of lr[gr40]-lr[gr41] */
/* Local regesters from 00 to 07f#h*/
DUMPSREGS .equ 73 /* Dump contents of Special Regs */
DUMPMEM .equ 74 /* Dump contents of MEM[gr40]-MEM[gr41] */
/* ROM library traps (must support with ROM module) */
BESUPERV .equ 192 /* Trap 192 to become Supervisor */
BEUSER .equ 193 /* Trap 193 to become User */
SETTIME .equ 194 /* Trap 194 to have ROM set timer */
/* count value passed in gr41 */
SHOWTIME .equ 195 /* Trap 195 to have Simulator show proc timer */
SHOWSYSTIME .equ 196 /* Trap 196 to have Sim Show System time */
/* ROM traps for c (must support with ROM module) */
OVERTRAP .equ 128 /* stack cache overflow (spill) */
UNDERTRAP .equ 129 /* stack cache underflow (fill) */
/* traps for c (DON't USE without knowing how to pass parameters!) */
GETC .equ 130 /* don't need ROM */
PUTC .equ 131 /* don't need ROM */
FPUTS .equ 132 /* don't need ROM */
FCLOSE .equ 133 /* don't need ROM */
FSTAT .equ 134 /* doesnt WORK on IBM-PC */
SETBUF .equ 135 /* don't need ROM */
FOPEN .equ 136 /* don't need ROM */
FILBUF .equ 137 /* doesnt WORK on IBM-PC */
FLSBUF .equ 138 /* doesnt WORK on IBM-PC */
ITOA .equ 139 /* don't need ROM */
TIME .equ 140 /* don't need ROM */
FTELL .equ 141 /* don't need ROM */
FGETS .equ 142 /* don't need ROM */
FREE .equ 143 /* don't need ROM */
GETPID .equ 144 /* doesnt WORK on IBM-PC */
FSEEK .equ 145 /* don't need ROM */
FWRITE .equ 146 /* don't need ROM */
FREAD .equ 147 /* don't need ROM */
UNLINK .equ 148 /* don't need ROM */
/* not tested fully yet! */
GETCHAR .equ 200 /* get char into gr41, don't need ROM */
PUTCHAR .equ 201 /* put char from gr41, don't need ROM */
PUTSTRING .equ 202 /* printf("%s",(unsigned char*)gr41 */
.list